#include "Threadpool.hpp"
#include "task.hpp"
#include <memory>
using namespace std;
using namespace Threadpoolmodule;
int main()
{
    Enable_console_logstrategy();

    Threadpool<task_t>::getinstance()->start();
    for(int i=0;i<5;i++)
    {
        Threadpool<task_t>::getinstance()->equeue(download);
    }
    sleep(4);
    Threadpool<task_t>::getinstance()->Stop();
    Threadpool<task_t>::getinstance()->join();
    
    return 0;
}